home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-09-17 | 4.3 KB | 141 lines | [TEXT/MPS ] |
- //========================================================================================
- //
- // File: Defines.k
- // Release Version: $ ODF 2 $
- //
- // Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- //
- //========================================================================================
-
- #ifndef DEFINES_K
- #define DEFINES_K
-
- #ifndef FWMENUS_K
- #include "FWMenus.k"
- #endif
-
- //-------------------------------------------------------------------------------------
- // Uncomment the following three lines, and define them appropriately!!
- // If your part can be a container for other parts, define FW_SUPPORTS_EMBEDDING
- // to be 1. Otherwise define it to be 0.
- // If your part defines any ODExtensions, define FW_SUPPORTS_EXTENSIONS to be
- // 1 to enable the extensions manager. Otherwise, define it to be 0.
- // If your part is scriptable, define FW_SUPPORTS_SCRIPTING to be 1. Otherwise,
- // define it to be zero. Note that if your part is scriptable is must support
- // extensions, so FW_SUPPORTS_EXTENSIONS must be defined to be 1.
-
- #define FW_SUPPORTS_EMBEDDING 0
- #define FW_SUPPORTS_EXTENSIONS 0
- #define FW_SUPPORTS_SCRIPTING 0
-
- //-------------------------------------------------------------------------------------
- // Use the following flags to determine which view resources will be used by Form
-
- #define FW_ODFRC_VIEWS 1
- #define FW_MACAPP_VIEWS 0
- #define FW_PPOB_VIEWS 0
-
- //-------------------------------------------------------------------------------------
- // Presentations
- #define kMainPresentation "ODF:Presentation:Form"
- #define kPasswordDialogPresentation "ODF:Presentation:Form:PasswordDialog"
- #define kInvalidDialogPresentation "ODF:Presentation:Form:InvalidDialog"
-
- //-------------------------------------------------------------------------------------
- // Menus
- #define kMenuBar 1024
-
- #define cResetFormCommand FW_kFirstUserCommandID
-
- #if FW_PPOB_VIEWS
- #define cReloadPPobViews cResetFormCommand + 1
- #endif
- #if FW_MACAPP_VIEWS
- #define cReloadMacAppViews cResetFormCommand + 1
- #endif
-
- //-------------------------------------------------------------------------------------
- // Icons ID
- #define kViewAsIconID 128
- #define kAboutIconID 130
-
- //-------------------------------------------------------------------------------------
- // About
- #define kAbout 1024
-
- //-------------------------------------------------------------------------------------
- // Document Window
- #define kDocumentWindowID 1024
-
- //-------------------------------------------------------------------------------------
- // Part Info
- #define kPartInfoID 1024
-
- //-------------------------------------------------------------------------------------
- // Views
- // Form frame
- #define kFormView 1024
-
- #define kHorzScrollBarID 'horz'
- #define kVertScrollBarID 'vert'
- #define kGrowBoxID 'grow'
-
- #define kFormViewID 100
-
- #define kFirstNameEdViewID 101
- #define kLastNameEdViewID kFirstNameEdViewID + 1
- #define kMemberNameEdViewID kLastNameEdViewID + 1
- #define kEMailEdViewID kMemberNameEdViewID + 1
- #define kCommentsEdViewID kEMailEdViewID + 1
-
- #define kEditHScrollBarID 108
- #define kEditVScrollBarID 109
- #define kSubscribeCheckID 110
- #define kBrowseTimePopupID 111
- #define kOnlineTimePopupID 112
-
- #define k14400RadioID 113
- #define k28800RadioID 114
- #define kFasterRadioID 115
- #define kWordOfMouthRadioID 116
- #define kHyperLinkRadioID 117
- #define kMacTechRadioID 118
- #define kMagazineRadioID 119
- #define kOtherRadioID 120
- #define kYesRadioID 121
- #define kNoRadioID 122
-
- #define kSubscribeButtonID 123
- #define kAddButtonID 124
- #define kRemoveButtonID 125
- #define kPlatformListBoxID 130
-
- // Password Dialog frame
- #define kPasswordDialog 1025
-
- #define kOKButtonID 1
- #define kCancelButtonID 2
- #define kPasswordEditID 3
- #define kConfirmEditID 4
-
- // Radio-clusters constants
- #define kNumRadioClusters 3
- #define kNumRadioButtons kNoRadioID - k14400RadioID + 1
-
- //-------------------------------------------------------------------------------------
- // Mac-specific Resources
-
- #ifdef FW_BUILD_MAC
-
- // ODF Popups use Mac MENU resources for now
- #define kBrowseTimeMenuResID 1000
- #define kOnlineTimeMenuResID 1001
-
- // Pictures used in CFormView class
- #define kFormPict1 130
- #define kFormPict2 131
-
- #endif // FW_BUILD_MAC
-
- #endif
-